home *** CD-ROM | disk | FTP | other *** search
/ 3D Images / 3D Images.iso / programs / amiga / rshow / install / install.iconx < prev    next >
Encoding:
Text File  |  1995-01-12  |  3.2 KB  |  129 lines

  1. ; $VER: Install.IconX 37.1 (28.7.94)
  2. ;
  3. ; This script installs the RShow Retina image viewer and its preferences editor
  4. ;
  5. FailAt 21
  6.  
  7. Echo "RShow installation script for use with IconX"
  8. Echo "Copyright © 1994 by Michael Berg"
  9. Echo "All Rights Reserved."
  10. Echo ""
  11.  
  12. Echo "Installing guifront.library..."
  13.  
  14. SetEnv DoCopyLib YES
  15.  
  16. Version >NIL: guifront.library 37
  17. If NOT WARN
  18.     Echo "    You already have: " NOLINE
  19.     Version guifront.library
  20.     Echo "" NOLINE
  21.     Ask "    Do you want to install version 37.2 of guifront.library?"
  22.     If NOT WARN
  23.         SetEnv DoCopyLib NO
  24.     EndIf
  25. EndIf
  26.  
  27. If $DoCopyLib EQ "YES"
  28.     Echo "    Copying guifront.library to your LIBS: ..."
  29.     Copy /libs/guifront.library LIBS: QUIET
  30.     Avail >NIL: FLUSH
  31. EndIf
  32.  
  33. Echo "    Do you want to install the preferences editor for"
  34. Echo "    guifront.library as well? This isn't strictly necessary"
  35. Echo "    in order to use RShowPrefs, but it does allow you"
  36. Ask  "    to customize the way its GUI looks  [y/n]:"
  37. If WARN
  38.     Echo "*N    Installing GUIFront preference editor..."
  39.  
  40.     If EXISTS SYS:Prefs
  41.         SetEnv TargetDir Sys:Prefs/
  42.     Else
  43.         SetEnv TargetDir Sys:
  44.     Endif
  45.  
  46.     Lab SelectDir0
  47.  
  48.     Ask "        Install in '$TargetDir'? [y/n]:"
  49.     If WARN
  50.         Echo "    Copying /Prefs/GUIFront to '$TargetDir'..."
  51.         Copy /Prefs/GUIFront $TargetDir QUIET
  52.         Copy /Prefs/GUIFront.info $TargetDir QUIET
  53.     Else
  54.         Echo NOLINE "    Enter other path, QUIT to skip installation: "
  55.         /GetLine >ENV:TargetDir
  56.         If NOT $TargetDir EQ "QUIT"
  57.             Skip BACK SelectDir
  58.         Else
  59.             Echo "    Installation skipped..."
  60.         EndIf
  61.     EndIf
  62. EndIf
  63.  
  64. Echo "*NInstalling RShow preference editor..."
  65.  
  66. If EXISTS SYS:Prefs
  67.     SetEnv TargetDir Sys:Prefs/
  68. Else
  69.     SetEnv TargetDir Sys:
  70. Endif
  71.  
  72. Lab SelectDir
  73.  
  74. Ask "    Install in '$TargetDir'? [y/n]:"
  75. If WARN
  76.     Echo "    Copying /Prefs/RShowPrefs to '$TargetDir'..."
  77.     Copy /Prefs/RShowPrefs $TargetDir QUIET
  78.     Copy /Prefs/RShowPrefs.info $TargetDir QUIET
  79. Else
  80.     Echo NOLINE "    Enter other path, QUIT to skip installation: "
  81.     /GetLine >ENV:TargetDir
  82.     If NOT $TargetDir EQ "QUIT"
  83.         Skip BACK SelectDir
  84.     Else
  85.         Echo "    Installation skipped..."
  86.     EndIf
  87. EndIf
  88.  
  89. Echo "*NInstalling RShow Retina image viewer..."
  90.  
  91. If EXISTS SYS:WBStartup
  92.     SetEnv TargetDir Sys:WBStartup/
  93. Else
  94.     SetEnv TargetDir Sys:
  95. Endif
  96.  
  97. Lab SelectDir2
  98.  
  99. Ask "    Install in '$TargetDir'? [y/n]:"
  100. If WARN
  101.     Echo "    Copying /RShow to '"$TargetDir"'..."
  102.     Copy /RShow $TargetDir QUIET
  103.     Copy /RShow.info $TargetDir QUIET
  104. Else
  105.     Echo NOLINE "    Enter other path, QUIT to skip installation: "
  106.     /GetLine >ENV:TargetDir
  107.     If NOT $TargetDir EQ "QUIT"
  108.         Skip BACK SelectDir2
  109.     Else
  110.         Echo "    Installation skipped..."
  111.     EndIf
  112. EndIf
  113.  
  114. Echo ""
  115.  
  116. If EXISTS Locale:Catalogs
  117.     Echo "Do you wish to install the catalog files for the RShow"
  118.     Echo "preferences editor and image viewer?"
  119.     Ask  "Kickstart 2.04 users should answer No, all others Yes: [y/n]:"
  120.     If WARN
  121.         Copy >NIL: Locale Locale: All QUIET
  122.         Echo "Catalogs installed"
  123.     EndIf
  124. Else
  125.     Echo "(Catalog files not installed -- no Locale directory found)"
  126. EndIf
  127.  
  128. Echo "*NInstallation complete. You may close the window now."
  129.